/**
 * 
 */
package com.ben.smm.util;

import com.ben.smm.domain.Sms;

/**
 * @author lixuanbin
 * @date 2011-11-14
 */
public class CheckSms {

	/**
	 * 判断是否本系统加密的短信
	 * 
	 * @param sms
	 * @return
	 */
	public static boolean isSMMEncryptedSms(Sms sms) {
		boolean isSMMEncrypted = false;
		if (sms != null) {
			String smsContent = sms.getContent();
			if (smsContent != null && sms.getContent().startsWith("SM$")
					&& sms.getContent().endsWith("SM#")) {
				isSMMEncrypted = true;
			}
		}
		return isSMMEncrypted;
	}
}
